<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<style type="text/css">
		#page li {
		    list-style: none;
		    float: left;
		    height: 20px;
		    padding: 0 5px;
		    margin: 0 5px;
		    border: 1px solid #005580;
		}
	</style>
	<body>
		
				<div class="page-content">
					<div class="page-header position-relative">
						<h1>
							用户管理
							<small>
								<i class="icon-double-angle-right"></i>
								管理员列表
							</small>
						</h1>
					</div><!--/.page-header-->
<div class="row-fluid">
						<div class="span12">
							<!--PAGE CONTENT BEGINS-->

							<div class="row-fluid">
								<div class="span12">
									<table id="sample-table-1" class="table table-striped table-bordered table-hover">
										<thead>
											<tr>
												<th class="center" width="100">
													管理员ID
												</th>
												<th>管理员用户名</th>

												<th class="hidden-phone" width="">
													管理员真实名
												</th>
												
												<th class="hidden-480" width="">上次登陆时间</th>
												
												<th class="hidden-480" width="">当前权限分组</th>

												<th width="">权限管理</th>
											</tr>
										</thead>

										<tbody style="font-size: 16px;" >
											{{foreach from="$adminData" value="$v"}}
											<tr>
												<td class="center">
													{{$v['aid']}}
												</td>

												<td>
													<a href="#">{{$v['username']}}</a>
												</td>
												<td>
													{{if value="$v['relname']"}}
														{{$v['relname']}}
													{{else}}
														该用户还未认证真实姓名
													{{endif}}
												</td>
												<td>{{date('Y/m/s H:i:s',$v['logintime'])}}</td>

												<td>
													{{if value="$v['name']"}}
														<span style="color: green;">{{$v['name']}}</span>
													{{else}}
													<span style="color: red;">该用户还未分配权限</span>
														
													{{endif}}
												</td>
												<td>
													<div class="hidden-phone visible-desktop btn-group">
														
														<a href="{{U('administer/edit',array('aid'=>$v['aid']))}}" class="btn btn-info">
															<i class="icon-edit bigger-120"></i>更改权限
														</a>

														<a href="javascript: if(confirm('您确定删除吗？')) location.href=''" class="btn btn-danger">
															<i class="icon-trash bigger-120"></i>删除用户
														</a>
													</div>

												</td>
											</tr>
											{{endforeach}}
											
										</tbody>
									</table>
									<ul id="page">
										
									</ul>
								</div>
							</div>
				</div><!--/.page-content-->

			</div><!--/.main-content-->
		</div><!--/.main-container-->

	</body>
</html>
